<?php

class m131103_113601_create_tbl_config extends CDbMigration
{
	public function up()
	{
        $this->createTable('tbl_config',array(
            'id'=>'int(10) unsigned NOT NULL AUTO_INCREMENT',
            'param'=>'varchar(128) NOT NULL',
            'value'=>'text NOT NULL',
            'default'=>'text NOT NULL',
            'label'=>'string NOT NULL',
            'type'=>'varchar(128) NOT NULL',
            'PRIMARY_KEY'=>'id',
            'UNIQUE_KEY'=>'param',
        ), 'ENGINE=InnoDB DEFAULT CHARSET=utf8');
	}

	public function down()
	{
        $this->dropTable('tbl_config');
	}

	/*
	// Use safeUp/safeDown to do migration with transaction
	public function safeUp()
	{
	}

	public function safeDown()
	{
	}
	*/
}